

#ifndef MPI_SAMPLE_VDEC_H
#define MPI_SAMPLE_VDEC_H

#include "mpi_lib.h"
#include "sample_sys.h"
#include "mdi_common.h"
#include "lcd_common.h"
#include "mpi_version.h"
#include <math.h>

#ifdef  __cplusplus
extern "C"
{
#endif


int sgks_mpi_sample_EnableMjpegVdec(char *filename, int start_mode);
int sgks_mpi_sample_EnableH264Vdec(char *filename,int start_mode);
#if 0
u32 Analysis_Ue_H264_SPS(u8 *pBuff, u32 nLen, u32 *nStartBit);
int Analysis_Se_H264_SPS(u8 *pBuff, u32 nLen, u32 *nStartBit);
u64 Analysis_U_H264_SPS(u32 BitCount,u8 *buf,u32 *nStartBit);

#endif
int Analysis_H264_SPS_Pixel_Info(u8 * buf,unsigned int nLen,int *width,int *height);
int find_h264_frame_head(unsigned       char * src,int start_offset,int len,unsigned char frame_type,unsigned char type_PI);


int Analysis_Mjpeg_Pixel_Info(unsigned       char * src,int len,int *width,int *height);
int find_mjpeg_frame_head(unsigned       char * src,int start_offset,int len);




#ifdef  __cplusplus
}
#endif

#endif

